package com.com.com;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.EditText;
import android.widget.Toast;

public class StuffActivity extends Activity implements OnClickListener{
	EditText text;
	Button b1;
	String s1;
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.main);

		text= (EditText) findViewById(R.id.editText1);

		b1 = (Button) findViewById(R.id.button1);
		b1.setOnClickListener(this);

	}

	public void onClick(View v) {
		if(b1.equals(v)){
			s1 = text.getText()+"";
			Toast.makeText(this, s1, Toast.LENGTH_LONG).show();
		}

	}
}